import { request } from '@/utils/index'
import type { ResType } from './shared'
// 定义具体的接口类型
type ChannelItem = {
  id: number
  name: string
}

type ChannelRes = {
  channels: ChannelItem[]
}

const getChannelListAPI = () => request.request<ResType<ChannelRes>>({ url: '/channels' })

export { getChannelListAPI }
